package com.mmloo.common.service;

import com.mmloo.common.repository.CURDRepository;
import com.mmloo.common.util.DataTable;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

/**
 * Created by jessy on 2015/9/24.
 */
@Service
public class TestService {
    @Resource
    CURDRepository curdRepository;


    public void add() throws Exception{
        ArrayList arrayList = new ArrayList();
        arrayList.add(DataTable.USER_ID_SQUENCE.getBytes());
        curdRepository.incr(arrayList);

        System.out.println("array = " + curdRepository.get(arrayList));


    }
}
